<?php
	class dathangbs{
		public $MaDatHang = 0;
		public $MaNguoiDung = 0;
		public $DiaChiGiaoHang = "";
		public $DienThoai = "";
		public function Add()
		{
			$db = new dathangdb();
			return $db->Add($this->MaNguoiDung, $this->DiaChiGiaoHang, $this->DienThoai);
		}
		
		public function Delete()
		{
			$db = new dathangdb();
			return $db->Delete($this->MaDatHang);
		}
		
		public function Update()
		{
			$db = new dathangdb();
			return $db->Update($this->MaDatHang, $this->DiaChiGiaoHang, $this->DienThoai);
		}
		
		public function GetList()
		{
			$db = new dathangdb();
			return $db->GetList($this->MaDatHang, $this->MaNguoiDung,  $this->DiaChiGiaoHang, $this->DienThoai);
		}
		public function Find()
		{
			$db = new dathangdb();
			return $db->Find($this->MaDatHang, $this->MaNguoiDung,  $this->DiaChiGiaoHang, $this->DienThoai);
		}
	}

?>